package com.hpjpw.idoapp.mapper;

import com.hpjpw.idoapp.domain.ReceiveMessageListVo;

import java.util.List;

/**
 * @BelongsProject: ruoyi
 * @BelongsPackage: com.hpjpw.idoapp.mapper
 * @Author: hpj
 * @CreateTime: 2021-01-06 16:13
 * @Description: 系统消息模块相关
 */
public interface ReceiveMessageListMapper {
    /**
     * 通过接收者ID查询消息阅读状态列表
     *
     * @param receiverId 接收者ID
     * @return 消息阅读状态集合
     */
    List<ReceiveMessageListVo> selectMessageReceiveByReceiverId(Long receiverId);

    /**
     * 通过消息ID删除消息阅读状态
     *
     * @param messageId 消息ID
     * @return 结果
     */
    public int deleteMessageReceiveByMessageId(Long messageId);
}
